package com.wfl.sampling.dao;

import com.wfl.sampling.entity.PostClick;
import com.wfl.sampling.entity.PostDo;
import com.wfl.sampling.entity.PostNew;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PostDao {
    public void savePost(PostDo post);
    public void insertPostImage(PostDo post);
    public List<PostDo> selectPost();
    public List<String> selectPostImages(Long postId);
    public void deletePost(Integer postId);

    void insertComment(PostNew postNew);

    List<PostNew> selectPostNews(Long postId);

    PostClick selectPostClick(PostClick postClick);

    void insertPostClick(PostClick postClick);

    void updatePostClick(PostClick postClick);

    int countPostClick(int postId);

    void updatePostCountClick(int count, int postId);

    List<Integer> selectPostIdClick(Integer id);
}
